<template>
  <div>
    <p>进店次数：10次</p>
    <el-table :data="tableData" size="small" stripe>
      <el-table-column label="序号" type="index" :index="indexMethod" align="center" width="60"></el-table-column>
      <el-table-column label="进店时间" prop="time" align="center"></el-table-column>
      <el-table-column label="首个识别的摄像头信息" prop="device" align="center"></el-table-column>
    </el-table>
    <el-pagination background
                   layout="total,sizes,prev,pager,next"
                   @current-change="currentChange"
                   @size-change="sizeChange"
                   :page-sizes="pagination.pageSizes"
                   :page-size.sync="pagination.pageSize"
                   :total="pagination.total"
                   :current-page.sync="pagination.currentPage"
                   class="paging fr">
    </el-pagination>
  </div>
</template>
<style lang="scss" scoped>
  .fr {
    float: right;
  }
  .el-table {
    margin-bottom: 10px;
  }
  .paging {
    margin: 15px;
    height: 28px;
  }
</style>
<script>
  export default {
    data() {
      return {
        tableData:[],
        pagination:{
          total:0,//总条目数
          currentPage:1,//当前页数
          pageSize:10,//每页显示条目个数
          pageSizes:[10,20,50,100],//每页显示个数选择器的选项设置
        },
      }
    },
    created() {
      console.log('caseInfo');
      this.$Bus.$emit('Loading',false);
    },
    methods:{
      //表格序号显示方法
      indexMethod(index){
        return index + ((this.pagination.currentPage - 1) * this.pagination.pageSize) + 1
      },
      currentChange(){

      },
      sizeChange(){

      },
    }
  }
</script>

<style>
</style>